from multiprocessing import Process
from threading import Thread


def func():
    print('AAA')


def func2():
    for k in range(2):
        b = Thread(target=func, )
        b.start()
        print('BBB')


if __name__ == "__main__":
    for i in range(2):
        a = Process(target=func2, )
        a.start()
